Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


Opening a Pipe

In order to communicate with an endpoint you must first open a pipe to an individual endpoint. The USBOpenPipe function provides a mechanism for opening a interrupt and bulk pipes.

Note

Normally the open pipe operation would be performed with the USBConfigureInterface function and the pipe discovered with the USBFindNextPipe function. However, if you are reading descriptors yourself, you may need to use the USBOpenPipe function. This method of opening a pipe is discouraged for future compatibility.

IMPORTANT

The USBOpenPipe and USBClosePipe functions should only be used in conjunction with the functions described in USB Descriptor Functions not in conjunction with other configuration services.

USBOpenPipe

USBClosePipeByReference


© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames